package co.fitstart.admin.entity.report;

import java.math.BigDecimal;

/**
 * 学员购课统计
 * @author haiyan_xiao
 *
 */
public class StudentCourseRoundStat {
    /** 门店名称 */
    private String site;
    
    /** 课程总金额 */
    private Double totalAmount;
    
    /** 学员姓名 */
    private String student;
    
    /** 学员手机号 */
    private String mobile;
    
    /** 购课累计次数 */
    private Long count;
    
    public StudentCourseRoundStat() {
        
    }
    
    public StudentCourseRoundStat(String site, Long totalAmount, String student, String mobile, Long count) {
        if(totalAmount != null && count != null) {
            this.site = site;
            this.totalAmount = new BigDecimal(totalAmount).divide(new BigDecimal(100)).doubleValue();;
            this.student = student;
            this.mobile = mobile;
            this.count = count;
        }
    }

    /**
     * @return the site
     */
    public String getSite() {
        return site;
    }

    /**
     * @return the totalAmount
     */
    public Double getTotalAmount() {
        return totalAmount;
    }

    /**
     * @return the student
     */
    public String getStudent() {
        return student;
    }

    /**
     * @return the mobile
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * @return the count
     */
    public Long getCount() {
        return count;
    }

    /**
     * @param site the site to set
     */
    public void setSite(String site) {
        this.site = site;
    }

    /**
     * @param totalAmount the totalAmount to set
     */
    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * @param student the student to set
     */
    public void setStudent(String student) {
        this.student = student;
    }

    /**
     * @param mobile the mobile to set
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * @param count the count to set
     */
    public void setCount(Long count) {
        this.count = count;
    }
}
